package cn.edu.scau.dropship.ServiceImpl;

import cn.edu.scau.dropship.entity.Store_goods;
import cn.edu.scau.dropship.entity.Store_goodsExample;
import cn.edu.scau.dropship.mapper.Store_goodsMapper;
import cn.edu.scau.dropship.service.StoreGoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StoreGoodsServiceImpl implements StoreGoodsService {
    @Autowired
    private Store_goodsMapper store_goodsMapper;

    @Override
    public long countByExample(Store_goodsExample example) {
        return store_goodsMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(Store_goodsExample example) {
        return store_goodsMapper.deleteByExample(example);
    }

    @Override
    public int insert(Store_goods record) {
        return store_goodsMapper.insert(record);
    }

    @Override
    public int insertSelective(Store_goods record) {
        return store_goodsMapper.insertSelective(record);
    }

    @Override
    public List<Store_goods> selectByExample(Store_goodsExample example) {
        return store_goodsMapper.selectByExample(example);
    }

    @Override
    public int updateByExampleSelective(Store_goods record, Store_goodsExample example) {
        return store_goodsMapper.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(Store_goods record, Store_goodsExample example) {
        return store_goodsMapper.updateByExample(record,example);
    }
}
